/**
 * 
 */
package com.nervytech.tutorcruise.spring.controller;

import java.util.Map;

import org.springframework.stereotype.Controller;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.nervytech.tutorcruise.spring.search.form.TrainerSearchForm;
import com.nervytech.tutorcruise.spring.security.auth.SessionUser;
import com.nervytech.tutorcruise.spring.security.auth.UserDetailsServiceImpl;

/**
 * @author ADMIN
 * 
 */
@Controller
@RequestMapping({"/pub/search/trainer","/usr/search/trainer"})
public class TrainerSeacrhController {
	
	@RequestMapping(method = RequestMethod.GET)
	public String showTrainersSearchForm(Map model) {
		
		SessionUser usr = UserDetailsServiceImpl.currentUserDetails();
		
		
		
		return "trainersearchform";
	}

	@RequestMapping(method = RequestMethod.POST)
	public String searchTrainers(TrainerSearchForm searchForm,BindingResult result,Map model) {
		
		SessionUser usr = UserDetailsServiceImpl.currentUserDetails();
		
		
		
		return "trainersearchresult";
	}

}
